<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="editor/css/style.css" th:href="@{/editor/css/style.css}" />
    <link rel="stylesheet" href="editor/css/editormd.preview.css" th:href="@{/editor/css/editormd.preview.css}" />
    <script src="/jquery.min.js" th:src="@{/jquery.min.js}"></script>
    <script src="editor/lib/marked.min.js" th:src="@{/editor/lib/marked.min.js}"></script>
    <script src="editor/lib/prettify.min.js" th:src="@{/editor/lib/prettify.min.js}"></script>
    <script src="editor/lib/raphael.min.js" th:src="@{/editor/lib/raphael.min.js}"></script>
    <script src="editor/lib/underscore.min.js" th:src="@{/editor/lib/underscore.min.js}"></script>
    <script src="editor/lib/sequence-diagram.min.js" th:src="@{/editor/lib/sequence-diagram.min.js}"></script>
    <script src="editor/lib/flowchart.min.js" th:src="@{/editor/lib/flowchart.min.js}"></script>
    <script src="editor/lib/jquery.flowchart.min.js" th:src="@{/editor/lib/jquery.flowchart.min.js}"></script>
    <script src="editor/editormd.min.js" th:src="@{/editor/editormd.min.js}"></script>
    <script src="editor/editormd.js" th:src="@{/editor/editormd.js}"></script>
</head>
<body>
    <div id="test-editormd-view">
                <textarea id="append-test" style="display:none;">

###科学公式 TeX(KaTeX)
</textarea>
    </div>

    <script type="text/javascript">
        $(function() {
            var testEditormdView, testEditormdView2;
            testEditormdView2 = editormd.markdownToHTML("test-editormd-view", {
                htmlDecode      : "style,script,iframe",  // you can filter tags decode
                emoji           : true,
                taskList        : true,
                tex             : true,  // 默认不解析
                flowChart       : true,  // 默认不解析
                sequenceDiagram : true,  // 默认不解析
            });
        });
    </script>


</body>
</html>